package generator.equation;


public class meanSquare {

	private double piX;
	private double piY;
	private double piXY;
	private double result;
	
	public meanSquare(double PiX, double PiY, double PiXY){
		
		piX = PiX;
		piY = PiY;
		piXY = PiXY;
		
	}
	
	public double getResult(){
		
		Arith compute = new Arith();
		double result1 = (piXY - piX * piY) * (piXY - piX * piY);
		result = compute.div(result1, piX * piY);
	//	System.out.println("result1: " + result1 + " result: " + result);
		return result;
		
	}
	
}
